package main

import "fmt"

//定义一个接口
type AInterface interface {
	a()
}

type BInterface interface {
	b()
}

type CInterface interface {
	AInterface
	BInterface
	c()
}

//定义一个结构体
type Stu struct {
}

//实现接口
func (stu Stu) a() {
	fmt.Println("a()...")
}

func (stu Stu) b() {
	fmt.Println("b()...")
}

func (stu Stu) c() {
	fmt.Println("c()...")
}

type E interface {
}

func main() {
	var stu Stu
	var c CInterface = stu
	c.a()
	c.b()
	c.c()

	var e E = stu
	fmt.Println(e)
	var e2 interface{} = stu
	fmt.Println(e2)

	var num1 int = 10
	var e3 interface{} = num1
	fmt.Println(e3)
}
